package com.hkh.erp.common.api;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "分页结果对象",description = "分页结果对象")
public class BasePage<T> {

    @ApiModelProperty(value = "第几页")
    private Integer pageNum;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize;

    @ApiModelProperty(value = "结果总数")
    private Long total;

    @ApiModelProperty(value = "共几页")
    private Integer pages;

    @ApiModelProperty(value = "当前页记录列表")
    private List<T> list;

}
